"use strict";
const merge = require("webpack-merge");
const prodEnv = require("./prod.env");
const argv = process.argv[4];
let baseUrl = "";
switch (argv) {
  case "--env=uat":
    baseUrl = "http:127.0.0.1:8099/";
    break;
  case "--env=test":
    baseUrl = "http:127.0.0.1:8088/";
    break;
  case "--env=prod":
    baseUrl = "http:127.0.0.1:8089/";
    break;
  default:
    baseUrl = "http:127.0.0.1:8088/";
    break
}
module.exports = merge(prodEnv, {
  NODE_ENV: '"development"',
  baseUrl
});
